decorative banner

Using the "name" attribute


    Use the name attribute with Comp, Footage, Layer, Mask, and Effect objects when you want to apply the same expression to several layers and vary the results based on the name of an object. For example, the following expression wiggles the position of a layer differently if the layer is named "hero":

    amp = 20;
    if (name == "hero") {
        amp = 40;
    }
    wiggle(5, amp)